﻿using OnHook.Domain.Enums;

namespace OnHook.Business.Model
{
    /// <summary>
    /// 
    /// </summary>
    public class AuthCacheModel
    {
        /// <summary>
        /// 授权方式
        /// </summary>
        [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
        public EnumPlatform Platform { get; set; }

        /// <summary>
        /// 授权成功以后跳转地址
        /// </summary>
        public string ReturnUrl { get; set; } = string.Empty;

        /// <summary>
        /// 邀请码
        /// </summary>
        public string InviteCode { get; set; } = string.Empty;

        /// <summary>
        /// 授权回调地址
        /// </summary>
        public string AuthUrl { get; set; } = string.Empty;

    }
}
